package com.utils;

import com.enums.ProjectStatusEnum;
import lombok.Data;

/**
 * @author rkc
 * @date 2022/8/23 15:31
 */
@Data
public class WebSocketReceiveJsonData {

    /**
     * 状态码
     * 10：输入内容类型
     * 11：输入命令类型
     */
    private Integer code;

    /**
     * 数据
     */
    private Object data;

    /**
     * 描述
     */
    private String msg;

    public WebSocketReceiveJsonData() { }

    public WebSocketReceiveJsonData(ProjectStatusEnum state, Object data, String msg) {
        this.code = state.getCode();
        this.data = data;
        this.msg = msg;
    }
}
